const children = [
  {
    name: 'AddressIndex',
    path: 'index',
    component: () => import('@/views/address/index.vue'),
    meta: {
      menu: false, // 是否显示底部菜单
      auth: true, // 是否需要验证登录
      navBar: true, // 是否显示头部导航栏
      navBarTitle: '收货地址', // 头部导航栏标题
    }
  },
  {
    name: 'AddressAdd',
    path: 'add',
    component: () => import('@/views/address/add.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '添加收货地址',
    }
  },
  {
    name: 'AddressEdit',
    path: 'edit',
    component: () => import('@/views/address/edit.vue'),
    meta: {
      menu: false,
      auth: true,
      navBar: true,
      navBarTitle: '编辑收货地址',
    }
  },
]

export default {
  name: 'Address',
  path: '/address',
  component: {
    template: `<router-view></router-view>`
  },
  children,
  redirect: '/address/index'
}